const express = require('express')
const compression = require('compression')

const app = express()

app.use(compression())   //一定要把这行代码卸载静态文件托管之前
app.use(express.static('./dist'))
app.listen(80,()=>{
    console.log('server running at http://127.0.0.1')
})